import request from '@/utils/request'
// 获取部门列表
export const getDepartmentList = () => {
  return request.get('/company/department')
}
// 获取部门负责人信息
export const getDepartmentPerson = () => {
  return request.get('/sys/user/simple')
}
// 新增部门
export const addDepartmentList = (data) => {
  return request.post('/company/department', data)
}

// 获取部门详情列表
export const getDepartmentDetail = (id) => {
  return request.get(`/company/department/${id}`)
}
// 更新部门详情列表
export const updateDepartmentDetail = (data) => {
  return request.put(`/company/department/${data.id}`, data)
}
// 删除部门详情列表
export const deleteDepartmentDetail = (id) => {
  return request.delete(`/company/department/${id}`)
}
